﻿using HYQY_Core.Entities.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HYQY_App.Admin_System.Dtos
{
    /// <summary>
    /// 个人中心Dto
    /// </summary>
    public class PersonalCenterDto
    {
        /// <summary>
        /// 获取用户信息-输入
        /// </summary>
        public class SelectUserInfoInput
        {
            /// <summary>
            /// 用户id
            /// </summary>
            public string UserId { get; set; }
        }

        /// <summary>
        /// 获取用户信息-输出
        /// </summary>
        public class SelectUserInfoOutput : ResponseStatus
        {
            /// <summary>
            /// 用户id
            /// </summary>
            public string PlatformUserId { get; set; }

            /// <summary>
            /// 账号管理guid
            /// </summary>
            public string AId { get; set; }

            /// <summary>
            /// 用户名称
            /// </summary>
            //public string UserName { get; set; }

            /// <summary>
            /// 账号
            /// </summary>
            public string AccountNumber { get; set; }

            /// <summary>
            /// 邮箱
            /// </summary>
            public string Email { get; set; }

            /// <summary>
            /// 微信号
            /// </summary>
            public string WeChat { get; set; }

            /// <summary>
            /// 头像路径
            /// </summary>
            public string HeadPortraitUrl { get; set; }

            /// <summary>
            /// 上一次登录时间
            /// </summary>
            public DateTime? LastLoginTime { get; set; }

            /// <summary>
            /// 登录次数
            /// </summary>
            public int LoginCount { get; set; }
        }

        /// <summary>
        /// 保存头像-输入
        /// </summary>
        public class SaveTXInput
        {
            public string PlatformUserId { get; set; }

            public string HeadPortraitUrl { get; set; }
        }

        /// <summary>
        /// 修改个人基本信息-输入
        /// </summary>
        public class UpdataUserInfoInput
        {
            public string Email { get; set; }

            public string WeChat { get; set; }

            public string UserId { get; set; }
        }

        /// <summary>
        /// 修改密码-输入
        /// </summary>
        public class UpdatePasswordInput
        {
            /// <summary>
            /// 账号
            /// </summary>
            public string AccountNumber { get; set; }

            /// <summary>
            /// 旧密码
            /// </summary>
            public string OldPassword { get; set; }

            /// <summary>
            /// 新密码
            /// </summary>
            public string NewPassword { get; set; }

            /// <summary>
            /// 确认密码
            /// </summary>
            public string ConfirmPassword { get; set; }
        }
    }
}
